package xuQiuGenGai.impl;

import xuQiuGenGai.Apple;
import xuQiuGenGai.AppleAttribute;

/**
 * @AppleHeavyWeight: 以重量为标准 筛选
 * @author: ZBoHang
 * @time: 2021/9/17 9:20
 */
public class AppleHeavyWeight implements AppleAttribute {
    @Override
    public boolean test(Apple apple) {
        return apple.getWeight() > 150;
    }
}
